package com.zkthink.ceres.pay.wechat.v3.service.ecommerce.impl;

import com.zkthink.ceres.pay.wechat.v3.http.HttpClientHelper;
import com.zkthink.ceres.pay.wechat.v3.entity.request.applyments.*;
import com.zkthink.ceres.pay.wechat.v3.entity.result.applyments.*;
import com.zkthink.ceres.pay.wechat.v3.service.ecommerce.ApplymentsService;
import org.springframework.stereotype.Component;

/**
 * <p>
 *   商户进件
 * </p>
 *
 * @author vivi.huang
 * @since 2020/6/16
 */
@Component
public class ApplymentsServiceIml implements ApplymentsService {

    private HttpClientHelper httpClientHelper = new HttpClientHelper();

    @Override
    public CreateApplymentsResult createApplyments(CreateApplymentsRequest createApplymentsRequest) {
        return (CreateApplymentsResult) httpClientHelper.doRequest(createApplymentsRequest);
    }

    @Override
    public QueryApplymentsResult queryApplymentStatus(QueryApplymentsRequest queryApplymentsRequest) {
        return (QueryApplymentsResult) httpClientHelper.doRequest(queryApplymentsRequest);
    }

    @Override
    public CertResult downLoadCert(CertRequest certRequest) {
        return (CertResult) httpClientHelper.doRequest(certRequest);
    }

    @Override
    public ModifySettlementResult modifySettlement(ModifySettlementRequest modifySettlementRequest) {
        return (ModifySettlementResult) httpClientHelper.doRequest(modifySettlementRequest);
    }

    @Override
    public QuerySettlementResult querySettlement(QuerySettlementRequest querySettlementRequest) {
        return (QuerySettlementResult) httpClientHelper.doRequest(querySettlementRequest);
    }
}